<template>
    <div class="notFound">
        <div class="box_shadow">
            <div class="boxt">
                <dl>
                    <dt>
                        <div class="logo-area">
                            <h3 class="company-name">康得新晨诺光学材料有限公司</h3>
                        </div>
                        <h1>404</h1>
                        <h3>页面未找到</h3>
                        <h5>Page Not Found</h5>
                        <p class="description">
                            抱歉，您访问的页面不存在或已被移除<br>
                            请检查网址是否正确，或返回首页继续浏览
                        </p>
                    </dt>
                    <dd>
                        <router-link to="/">
                            <button>返回首页</button>
                        </router-link>
                    </dd>
                </dl>
            </div>
        </div>
    </div>
</template>

<script setup>
import { useIndexStore } from '@/store/path'
const indexStore = useIndexStore()
indexStore.$patch({
    showLoading: false
})
</script>

<style lang="less" scoped>
.notFound {
    padding:200px 0 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f9f9f9;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;

    .box_shadow {
        margin: 0 auto;
        max-width: 600px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        background: white;
        overflow: hidden;

        .boxt {
            padding: 60px;
            text-align: center;
            position: relative;
            
            .logo-area {
                margin-bottom: 30px;
                
                .company-name {
                    font-size: 18px;
                    color: #333;
                    font-weight: normal;
                    letter-spacing: 1px;
                }
            }

            h3 {
                font-weight: normal;
                font-size: 28px;
                color: #333;
                margin: 10px 0;
            }

            h1 {
                font-size: 120px;
                font-weight: bold;
                color: #c7000a;
                margin: 20px 0;
                text-shadow: 3px 3px 0 rgba(199, 0, 10, 0.1);
            }

            h5 {
                font-size: 20px;
                font-weight: normal;
                color: #666;
                margin-bottom: 20px;
            }

            .description {
                color: #777;
                line-height: 1.6;
                margin: 25px 0 40px;
                font-size: 16px;
            }

            button {
                padding: 0 30px;
                line-height: 40px;
                height: 40px;
                background: #c7000a;
                color: white;
                border-radius: 4px;
                font-size: 16px;
                border: none;
                cursor: pointer;
                transition: all 0.3s ease;
                
                &:hover {
                    background: darken(#c7000a, 10%);
                    transform: translateY(-2px);
                    box-shadow: 0 4px 8px rgba(199, 0, 10, 0.2);
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .notFound {
        padding: 50px 20px;
        
        .box_shadow {
            width: 100%;
            
            .boxt {
                padding: 40px 20px;
                
                h1 {
                    font-size: 80px;
                }
                
                h3 {
                    font-size: 22px;
                }
                
                h5 {
                    font-size: 18px;
                }
            }
        }
    }
}
</style>